package com.qingcloud.adminbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingcloud.adminbackend.entity.equipment.EquipmentDecodeRecord;
import com.qingcloud.adminbackend.pojo.equipment.EquipmentDecodeMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 设备解码器节码Mapper 接口
 * </p>
 *
 * @author wangjinnan
 * @since 2022-08-25
 */
public interface EquipmentDecodeRecordMapper extends BaseMapper<EquipmentDecodeRecord> {

    /**
     * 查询设备解码记录
     *
     * @param equipmentId 设备编号
     * @param componentId 组件ID, 大于0有效
     * @param queryTime   查询时间
     */
    List<EquipmentDecodeMessage> findByTime(@Param("equipmentId") String equipmentId,
                                            @Param("componentId") Integer componentId,
                                            @Param("queryTime") Long queryTime);

}
